public class GateKeeper {
    private final Guard guard;

    public GateKeeper(Guard guard) {
        this.guard = guard;
    }

    public void askIdentity() {
        System.out.println("来者何人？");
        System.out.println(guard.getIdentity());
    }
}